<template>
  <div id="app">
    <router-view />
    <mobile-menu v-if="menuShow"></mobile-menu>
  </div>
</template>

<script>
import MobileMenu from '@/views/pages/components/MobileMenu'
export default {
  data () {
    return {
      menuShow: false,
      collapsed: false
    }
  },
  created () {
  },
  mounted () {
    this.$bus.$on('mobile-show', this.toggleMenu)
  },
  methods: {
    toggleMenu () {
      this.menuShow = !this.menuShow
    }
  },
  components: {
    MobileMenu
  }
}
</script>

<style lang="scss">
#app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

</style>
